#include <iostream>
#include <cmath>
using namespace std;
int a,b;
int main()
{
	scanf("%dx^2-%d",&a,&b);
	
	printf("%.4lf",floor(sqrt((double)b/a)*10000)/10000);
	return 0;
}
